import Vue from 'vue'
import VueRouter from 'vue-router'
import Home from '../views/Home.vue'

Vue.use(VueRouter)

const routes = [
  {
    path: '/',
    name: 'Home',
    component: Home
  },
  {
    path: '/design',
    name: 'Design',
    component: () => import('../views/Design.vue')
  },
  {
    path: '/personal',
    name: 'Personal',
    component: () => import('../views/Personal.vue')
  },
  {
    path: '/search',
    name: 'Search',
    component: () => import('../views/Search.vue')
  },
  {
    path: '/national/:kw',
    name: 'National',
    component: () => import('../views/National.vue')
  },
  {
    path: '/posters/:id',
    name: 'Posters',
    component: () => import('../views/Posters.vue')
  },
  {
    path: '/project/:id',
    name: 'Project',
    component: () => import('../views/Project.vue')
  },
  {
    path: '/detailpage/:id',
    name: 'Detailpage',
    component: () => import('../views/Detailpage.vue')
  },
  {
    path: '/detailpage1/:id',
    name: 'Detailpage1',
    component: () => import('../views/Detailpage1.vue')
  },
]

const router = new VueRouter({
  routes
})

export default router
